/*	
 *				
 *					ISNW ---- It is a war.It is not warcraft!
 *
 *
 *					Author:					zhoukeli(haxixi_keli)
 *					Filename:				ISNW_Mesh.h
 *					CreateTime:				2008/11/26
 *					ModifyTime:				2008/11/26
 *
 */

#ifndef ISNW_MESH_H
#define ISNW_MESH_H

#include "../ISNW_d3d.h"
#include "../../../ISNW_Core/ISNW_Core.h"

namespace ISNW
{
	class ISNW_Mesh
	{
	public:
		enum ISNW_MESH_FORMAT{
			ISNW_MESH_FORMAT_CUBE_BTN,
			ISNW_MESH_FORMAT_CUBE_ENTITY,
			ISNW_MESH_FORMAT_TEXT,
		};

	public:
		ISNW_Mesh();
		~ISNW_Mesh();

	public:
		ISNW_VOID Create();

		ISNW_VOID SetFormat(ISNW_MESH_FORMAT f){
			m_format = f;
		}

		ISNW_VOID SetAspect(float as){m_aspect = as;}

		ISNW_VOID Render();

		ISNW_BOOL IsIn(POINT,D3DXMATRIX);

		ISNW_VOID SetText(ISNW_StringBaby sb){m_text = sb;}

	protected:
		ISNW_VOID iCreateCubeBtn();

		ISNW_VOID iCreateCubeEntity();

		ISNW_VOID iCreateText();

	protected:
		LPD3DXMESH				m_pmesh;

		ISNW_MESH_FORMAT		m_format;

		float					m_aspect;

		ISNW_StringBaby			m_text;
	};
}
#endif